﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001235 RID: 4661
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartTimedCocoonStageScRsp : IMessage<StartTimedCocoonStageScRsp>, IMessage, IEquatable<StartTimedCocoonStageScRsp>, IDeepCloneable<StartTimedCocoonStageScRsp>, IBufferMessage
	{
		// Token: 0x17003B20 RID: 15136
		// (get) Token: 0x0600D116 RID: 53526 RVA: 0x002338E7 File Offset: 0x00231AE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartTimedCocoonStageScRsp> Parser
		{
			get
			{
				return StartTimedCocoonStageScRsp._parser;
			}
		}

		// Token: 0x17003B21 RID: 15137
		// (get) Token: 0x0600D117 RID: 53527 RVA: 0x002338EE File Offset: 0x00231AEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartTimedCocoonStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B22 RID: 15138
		// (get) Token: 0x0600D118 RID: 53528 RVA: 0x00233900 File Offset: 0x00231B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartTimedCocoonStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600D119 RID: 53529 RVA: 0x00233907 File Offset: 0x00231B07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageScRsp()
		{
		}

		// Token: 0x0600D11A RID: 53530 RVA: 0x00233910 File Offset: 0x00231B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageScRsp(StartTimedCocoonStageScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.cocoonId_ = other.cocoonId_;
			this.wave_ = other.wave_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D11B RID: 53531 RVA: 0x00233974 File Offset: 0x00231B74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageScRsp Clone()
		{
			return new StartTimedCocoonStageScRsp(this);
		}

		// Token: 0x17003B23 RID: 15139
		// (get) Token: 0x0600D11C RID: 53532 RVA: 0x0023397C File Offset: 0x00231B7C
		// (set) Token: 0x0600D11D RID: 53533 RVA: 0x00233984 File Offset: 0x00231B84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003B24 RID: 15140
		// (get) Token: 0x0600D11E RID: 53534 RVA: 0x0023398D File Offset: 0x00231B8D
		// (set) Token: 0x0600D11F RID: 53535 RVA: 0x00233995 File Offset: 0x00231B95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CocoonId
		{
			get
			{
				return this.cocoonId_;
			}
			set
			{
				this.cocoonId_ = value;
			}
		}

		// Token: 0x17003B25 RID: 15141
		// (get) Token: 0x0600D120 RID: 53536 RVA: 0x0023399E File Offset: 0x00231B9E
		// (set) Token: 0x0600D121 RID: 53537 RVA: 0x002339A6 File Offset: 0x00231BA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Wave
		{
			get
			{
				return this.wave_;
			}
			set
			{
				this.wave_ = value;
			}
		}

		// Token: 0x17003B26 RID: 15142
		// (get) Token: 0x0600D122 RID: 53538 RVA: 0x002339AF File Offset: 0x00231BAF
		// (set) Token: 0x0600D123 RID: 53539 RVA: 0x002339B7 File Offset: 0x00231BB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600D124 RID: 53540 RVA: 0x002339C0 File Offset: 0x00231BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartTimedCocoonStageScRsp);
		}

		// Token: 0x0600D125 RID: 53541 RVA: 0x002339D0 File Offset: 0x00231BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartTimedCocoonStageScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.CocoonId == other.CocoonId && this.Wave == other.Wave && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D126 RID: 53542 RVA: 0x00233A40 File Offset: 0x00231C40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CocoonId != 0U)
			{
				num ^= this.CocoonId.GetHashCode();
			}
			if (this.Wave != 0U)
			{
				num ^= this.Wave.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D127 RID: 53543 RVA: 0x00233AC7 File Offset: 0x00231CC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D128 RID: 53544 RVA: 0x00233ACF File Offset: 0x00231CCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D129 RID: 53545 RVA: 0x00233AD8 File Offset: 0x00231CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Wave != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Wave);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CocoonId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.CocoonId);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D12A RID: 53546 RVA: 0x00233B6C File Offset: 0x00231D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CocoonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CocoonId);
			}
			if (this.Wave != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Wave);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D12B RID: 53547 RVA: 0x00233BF4 File Offset: 0x00231DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartTimedCocoonStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CocoonId != 0U)
			{
				this.CocoonId = other.CocoonId;
			}
			if (other.Wave != 0U)
			{
				this.Wave = other.Wave;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D12C RID: 53548 RVA: 0x00233C84 File Offset: 0x00231E84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D12D RID: 53549 RVA: 0x00233C90 File Offset: 0x00231E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 24U)
					{
						this.Wave = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.CocoonId = input.ReadUInt32();
						continue;
					}
					if (num == 106U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040053D8 RID: 21464
		private static readonly MessageParser<StartTimedCocoonStageScRsp> _parser = new MessageParser<StartTimedCocoonStageScRsp>(() => new StartTimedCocoonStageScRsp());

		// Token: 0x040053D9 RID: 21465
		private UnknownFieldSet _unknownFields;

		// Token: 0x040053DA RID: 21466
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040053DB RID: 21467
		private uint retcode_;

		// Token: 0x040053DC RID: 21468
		public const int CocoonIdFieldNumber = 12;

		// Token: 0x040053DD RID: 21469
		private uint cocoonId_;

		// Token: 0x040053DE RID: 21470
		public const int WaveFieldNumber = 3;

		// Token: 0x040053DF RID: 21471
		private uint wave_;

		// Token: 0x040053E0 RID: 21472
		public const int BattleInfoFieldNumber = 13;

		// Token: 0x040053E1 RID: 21473
		private SceneBattleInfo battleInfo_;
	}
}
